package com.ymatou.query.trading.api.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;

import com.ymatou.query.trading.api.parameter.GetBuyerOrderListCountSumBean;
import com.ymatou.query.trading.api.service.GetBuyerOrderListCountSumCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestSuite;

/**
 * 获取若干指定买家的订单数总和 FreeMaker Template自动生成代码 接口未使用
 */
@TestSuite
public class Ts_GetBuyerOrderListCountSum {
	private static GetBuyerOrderListCountSumBean gbolcsbean;
	private static GetBuyerOrderListCountSumCall gbolcscall;

	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取若干指定买家的订单数总和");
	}

	@Before
	public void caseUp() {
		gbolcsbean = new GetBuyerOrderListCountSumBean();
		gbolcscall = new GetBuyerOrderListCountSumCall();

	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(gbolcscall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	// 废弃不用
	/*
	 * @Test
	 * 
	 * @Category(P1.class)
	 * 
	 * @TestCase public void Tc_GetBuyerOrderListCountSum_001() {
	 * Logger.start(true,"获取若干指定买家的订单数总和成功"); try { ArrayList<Integer> BuyerIdList =
	 * new ArrayList<Integer>(); BuyerIdList.add(1113);
	 * Logger.comment("查询指定的买家:"+BuyerIdList);
	 * gbolcsbean.setBuyerIdList(BuyerIdList); //订单状态 ArrayList<Integer>
	 * OrderStatusList = new ArrayList<Integer>(); //OrderStatusList.add(1);
	 * OrderStatusList.add(2); gbolcsbean.setOrderStatusList(OrderStatusList);
	 * //发送请求 gbolcscall.setData(gbolcsbean); gbolcscall.callService();
	 * Logger.comment("gbolcscall send:"+gbolcscall.getEntityString());
	 * Logger.comment("gbolcscall response:"+gbolcscall.getReturnData());
	 * Logger.verifyEquals(ErrorCode.SUCCESS, gbolcscall.getCode(), "验证Code");
	 * Logger.verifyEquals(ErrorCode.SUCCESSMSG, gbolcscall.getMsg(), "验证Msg");
	 * //TODO 查不到数据,确认后，该接口未使用 } catch (Exception e) { Logger.fail(e); } }
	 */
}